<?php if($this->beginCache("newsMiniBox".$this->_wID, array("duration"=>0))){
			?>
<?php 
if(strpos($params['category'], ',')!==false)
	$category = explode(',', $params['category']);
	else 
		$category[]= $params['category'];
?>
<div class="mnbox">
<div class="m-t">
<ul class="cat-l">
<?php 
foreach($category as $key => $cat):
$catC = Categories::model()->findByPk($cat);
$link = Yii::app()->createUrl('site_frontend/categories/list', array('alias'=>$catC->alias));
?>
	<li><a href="<?php echo $link;?>" <?php if($key==0) echo 'style="color:#BB3914; font-weight: 700"'?>><?php echo $catC->title; ?></a></li>
<?php endforeach;?>
</ul>
</div>
<div class="cmib">
	<?php 
	$News = FNews::getArticleByCat($category[0]);
	$cat_alias = Categories::model()->findByPk($News[0]['catid'])->alias;
	?>
	<div class="cm-l">
		<a class="thumb" href="">
			<?php 
			if($News[0]['images']!=''){
				$images = unserialize($News[0]['images']);
				echo '<img alt="'.$News[0]['title'].'" src="'.Yii::app()->getBaseUrl().$images['thumb']['url'].'"/>';
			}
			?>
		</a>
		<p class="title"><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/news', array('alias'=>$News[0]['alias'], 'cat'=>$cat_alias,'lang'=>'en'));?>"><?php echo $News[0]['title'];?></a></p>
		<p class="intr"><?php echo $News[0]['introtext'];?></p>
	</div>
	<div class="cm-r">
		<?php 
		if(count($News)>1):
		echo '<ul>';
		for($i=1; $i<count($News);$i++):
		$link = Yii::app()->createUrl('/site_frontend/index/news', array('alias'=>$News[$i]['alias'], 'cat'=>$cat_alias,'lang'=>'en'));
		?>
		<li><a href="<?php echo $link;?>"><?php echo $News[$i]['title'];?></a></li>
		<?php endfor;
		echo '</ul>';
		endif;?>
	</div>
</div>
</div>
<?php $this->endCache();
		}?>